<template>
    <div id="app">
        <el-container>
            <el-aside>
                <div class="header">
                    <div class="headerIcon"></div>
                    <div class="headerText">Hospital X</div>
                </div>
                <navigation></navigation>
            </el-aside>
            <el-main style="padding-left: 185px">
                <router-view></router-view>
            </el-main>
        </el-container>
    </div>
</template>

<script>
import navigation from "./components/navigation.vue";
export default {
    name: "App",
    components: {
        navigation,
    },
};
</script>

<style>
@font-face {
    font-family: HarmonyOS_Sans;
    /* src: url("https://oss.xerxeslee.top/fonts/HarmonyOS_Sans_SC_Regular.woff2"); */
    /* 字体通过在线网页才能加载，本地并不能被加载（跨域），需使用本地引入 */
    src: url("./assets/HarmonyOS_Sans_SC_Regular.woff2");
}
.equalWidthFont div {
    font-family: Consolas;
    font-size: 1.04rem;
}
* {
    font-family: HarmonyOS_Sans;
    font-size: 0.97rem;
}
.header {
    position: relative;
    margin: 20px 0px;
}
.headerIcon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url("./assets/logo.jpg") no-repeat;
    background-size: 100% 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 15px;
}
.headerText {
    font-size: 22px;
    text-align: center;
    margin-bottom: -10px;
}
.el-aside {
    width: 180px !important;
    min-height: 500px;
    position: fixed;
}
</style>
